﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MesBSW.DAL.MesDB
{
    [Serializable]
    [Table("status_type")]
    public class StatusType
    {
        /// <summary>
        /// ID，主键，自增长
        /// </summary>
        [Column("id"),Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        /// <summary>
        /// 类型代号
        /// </summary>
        [Column("stype_code")]
        public string StypeCode { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        [Column("stype_name")]
        public string StypeName { get; set; }

        /// <summary>
        /// 类型中包含的状态值
        /// </summary>
        [NotMapped]
        public List<StatusInfo> StatusList { get; set; } = new List<StatusInfo>();
    }
}
